//
//  PeopleTowCollectionViewCell.m
//  markmap
//
//  Created by 甘世清 on 2024/8/15.
//

#import "PeopleTowCollectionViewCell.h"

@implementation PeopleTowCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.layer.masksToBounds = YES;
        self.clipsToBounds = YES;
        self.layer.cornerRadius = 16;
        self.contentView.backgroundColor = SQHexColor(@"#FFFFFF", 0.2);
        [self SQ_UIViewForSelfView];
    }
    return self;
}
/// 添加ui
-(void)SQ_UIViewForSelfView
{
    [self.contentView addSubview:self.nameLabel];
    [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView).insets(UIEdgeInsetsMake(0, 10, 0, 10));
    }];
}

- (UILabel *)nameLabel{
    if (!_nameLabel) {
        _nameLabel = [[UILabel alloc]init];
        _nameLabel.font = FONT_MEDIUM(12);
        _nameLabel.numberOfLines = 0;
        _nameLabel.textColor = UIColor.whiteColor;
        _nameLabel.backgroundColor = UIColor.clearColor;
        
    }
    return _nameLabel;
}
@end
